package com.netease.financial.data.body;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * Created by hzwuyufeng on 3/3/16.
 */
public class PageBody {
    /**
     * platform : Android
     * heightPixels : 2392
     * widthPixels : 1440
     */

    @SerializedName("device")
    private DeviceBody device;
    /**
     * device : {"platform":"Android","heightPixels":2392,"widthPixels":1440}
     * elements : ["headerImageUrl","footerImageUrl"]
     * pageName : login
     */

    @SerializedName("pageName")
    private String pageName;
    @SerializedName("elements")
    private List<String> elements;

    public void setDevice(DeviceBody device) {
        this.device = device;
    }

    public void setPageName(String pageName) {
        this.pageName = pageName;
    }

    public void setElements(List<String> elements) {
        this.elements = elements;
    }

    public DeviceBody getDevice() {
        return device;
    }

    public String getPageName() {
        return pageName;
    }

    public List<String> getElements() {
        return elements;
    }

    public static class DeviceBody {
        @SerializedName("platform")
        private String platform;
        @SerializedName("heightPixels")
        private int heightPixels;
        @SerializedName("widthPixels")
        private int widthPixels;

        public void setPlatform(String platform) {
            this.platform = platform;
        }

        public void setHeightPixels(int heightPixels) {
            this.heightPixels = heightPixels;
        }

        public void setWidthPixels(int widthPixels) {
            this.widthPixels = widthPixels;
        }

        public String getPlatform() {
            return platform;
        }

        public int getHeightPixels() {
            return heightPixels;
        }

        public int getWidthPixels() {
            return widthPixels;
        }
    }

//    @SerializedName("pageName")
//    String pageName;
//
//    @SerializedName("elements")
//
//    List<String> elements;
//    @SerializedName("device")
//
//    Map<String, Object> device;
//
//    public String getPageName() {
//        return pageName;
//    }
//
//    public void setPageName(String pageName) {
//        this.pageName = pageName;
//    }
//
//    public List<String> getElements() {
//        return elements;
//    }
//
//    public void setElements(List<String> elements) {
//        this.elements = elements;
//    }
//
//    public Map<String, Object> getDevice() {
//        return device;
//    }
//
//    public void setDevice(Map<String, Object> device) {
//        this.device = device;
//    }

}
